import React,{ Component } from 'react';
// import ReactDOM from 'react-dom';
// import {Axios} from '../common/common';
import img1 from '../img/search.png'

// import ApiPath from "@/api/ApiPath"
// const Mock = require("mockjs")
// let mockUserInfo = {
//     "code": 0,
//     "data": {
//         "fullName": "@CNAME", // 随机生成中文人名
//         "userId": 1000234234001,
//     }
// };
// Mock.mock(RegExp(ApiPath.user.getUserInfo + ".*"), "get", (options) =>{
//     // 最佳实践，将请求和参数都打印出来，以便调试
//     console.debug(ApiPath.user.getUserInfo, options);
//     return Mock.mock(mockUserInfo);
// });

class MovieDetail extends React.Component{
   constructor(props) {
       super(props)
       // this.state={
       //      id : '123'
       // }
   }
   enterHandle(value) {
       // hashHistory.push('/search/all/' + encodeURIComponent(value))
   }
   componentDidMount() {
       this.getDetail()
   }
   getDetail = () => {
       // let id = '';
       // Axios('get','/restful/:'+id+'/list',)
       const numbers = [1, 2, 3, 4, 5];
       const listItems = numbers.map((number) =>
           <li key={number.toString()}>
               {number}
           </li>
       );
   }
    // to={'/detail/' + data.id}
    // /restful/:id/list
   render() {
       // let id = this.state.id;
       return (
           <div>
               <img src={img1} alt=""/>
           </div>
       )
   }
}

export default MovieDetail;
